﻿package stfei.HorizList.core {

	/**
	 * ...
	 * @author Stfei设计 汕头创一品牌整合机构
	   项目名称：Flash网站列表类
	   类应用：生成影片坐标注册点
	 */
	public class RegPointList extends HorizList {
		//注册点数组
		private var _RegPoint:Array;

		public function RegPointList(){
			_RegPoint = new Array()
		}

		public function get RegPoint():Array {
			var tol:int = listColumn * listRow;
			//当前的行数计数
			var CurrentRow:int = 1;
			//列计数
			var j:int = 0;
			//循环计算注册点
			for (var i:int = 0; i < tol; i++){
				if (i >= listColumn * CurrentRow){
					//换行+1并清除列记录器
					CurrentRow++;
					j = 0;
				}
				var x:Number = (miniW + spaceX) * j;
				var y:Number = (miniH + spaceY) * (CurrentRow - 1);
				//写入数组
				_RegPoint[i] = new Array();
				_RegPoint[i][0] = x;
				_RegPoint[i][1] = y;
				j++;
			}
			return _RegPoint;
		}

	}

}